package com.siwei.mes.mapper.laboratory;

import com.siwei.mes.common.dataSource.DataSource;
import com.siwei.mes.common.dataSource.DataSourceNames;
import com.siwei.mes.entity.laboratory.PrintExamRecord;
import com.siwei.mes.entity.laboratory.PrintReport;
import com.siwei.mes.entity.laboratory.PrintReportSerialNumber;
import org.apache.ibatis.annotations.Param;


public interface PrintReportMapper {

    @DataSource(DataSourceNames.LABORATORY)
    PrintReportSerialNumber queryReportSerialNumberByItemID(@Param("ItemID") String ItemID);

    @DataSource(DataSourceNames.LABORATORY)
    void insertReportSerialNumber(PrintReportSerialNumber printReportSerialNumber);

    @DataSource(DataSourceNames.LABORATORY)
    void updateReportSerialNumber(PrintReportSerialNumber printReportSerialNumber);

    @DataSource(DataSourceNames.LABORATORY)
    PrintReport queryByConSignID(@Param("conSignID") String conSignID);

    @DataSource(DataSourceNames.LABORATORY)
    PrintReport queryByReportNo(@Param("reportNo") String reportNo);

    @DataSource(DataSourceNames.LABORATORY)
    void insertPrintReport(PrintReport printReport);

    @DataSource(DataSourceNames.LABORATORY)
    void updatePrintReport(PrintReport printReport);

    @DataSource(DataSourceNames.LABORATORY)
    PrintExamRecord queryBySampleID(@Param("sampleID") String sampleID, @Param("conSignID") String conSignID);

    @DataSource(DataSourceNames.LABORATORY)
    void insertPrintExamRecord(PrintExamRecord printExamRecord);

    @DataSource(DataSourceNames.LABORATORY)
    void updatePrintExamRecord(PrintExamRecord printExamRecord);
}
